/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "省份",TableName = "Sys_Province",DetailTable =  new Type[] { typeof(Sys_ProvinceCity)},DetailTableCnName = "省份城市")]
    public partial class Sys_Province:BaseEntity
    {
        /// <summary>
       ///序号
       /// </summary>
       [Key]
       [Display(Name ="序号")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int ProvinceId { get; set; }

       /// <summary>
       ///省份编号
       /// </summary>
       [Display(Name ="省份编号")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string ProvinceCode { get; set; }

       /// <summary>
       ///省份名字
       /// </summary>
       [Display(Name ="省份名字")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ProvinceName { get; set; }

       /// <summary>
       ///省份位置
       /// </summary>
       [Display(Name ="省份位置")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string RegionCode { get; set; }

       [Display(Name ="省份城市")]
       [ForeignKey("ProvinceId")]
       public List<Sys_ProvinceCity> Sys_ProvinceCity { get; set; }

    }
}